package com.geekaca.d4.d4between;

import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;

public class TestCronoUnit {
    public static void main(String[] args) {
        LocalDateTime today = LocalDateTime.now();

        LocalDateTime birthday = LocalDateTime.of(1772, 1, 1, 0, 0, 0);

        System.out.println(ChronoUnit.DAYS.between(birthday, today));
        System.out.println(ChronoUnit.YEARS.between(birthday, today));


    }
}
